﻿using System;
using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;

namespace Bdcs.EntityFramework.Core
{
    [AppDbContext("DbConnectionString")]
    public class DefaultDbContext : AppDbContext<DefaultDbContext>
    {
        public DefaultDbContext(DbContextOptions<DefaultDbContext> options) : base(options)
        {
            // 启用数据监听
            EnabledEntityChangedListener = true;
        }
    }
}
